import React, { useEffect,useState } from "react";
import axios from "axios";


async function http() {
  const result = await axios.get(
    "https://web.hopex.com/api/v1/gateway/Home/Contracts?culture=zh-CN"
  );
}
const HookHttp: React.FC = () => {
   const [count ,setCount ] =  useState(100)
  useEffect(() => {
    http();
  },[]);
  return <>http-hook {count}
   <button onClick={() => setCount(count + 1)}>Click me</button>
  </>;
};
export default HookHttp;
